/*
 * XML Type:  IntraTransactionResponse
 * Namespace: http://ofx.net/types/2003/04
 * Java type: net.ofx.types.x2003.x04.IntraTransactionResponse
 *
 * Automatically generated - do not modify.
 */
package net.ofx.types.x2003.x04.impl;
/**
 * An XML IntraTransactionResponse(@http://ofx.net/types/2003/04).
 *
 * This is a complex type.
 */
public class IntraTransactionResponseImpl extends net.ofx.types.x2003.x04.impl.AbstractTransactionResponseImpl implements net.ofx.types.x2003.x04.IntraTransactionResponse
{
    
    public IntraTransactionResponseImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName INTRARS$0 = 
        new javax.xml.namespace.QName("", "INTRARS");
    private static final javax.xml.namespace.QName INTRAMODRS$2 = 
        new javax.xml.namespace.QName("", "INTRAMODRS");
    private static final javax.xml.namespace.QName INTRACANRS$4 = 
        new javax.xml.namespace.QName("", "INTRACANRS");
    
    
    /**
     * Gets the "INTRARS" element
     */
    public net.ofx.types.x2003.x04.IntraResponse getINTRARS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.IntraResponse target = null;
            target = (net.ofx.types.x2003.x04.IntraResponse)get_store().find_element_user(INTRARS$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * True if has "INTRARS" element
     */
    public boolean isSetINTRARS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(INTRARS$0) != 0;
        }
    }
    
    /**
     * Sets the "INTRARS" element
     */
    public void setINTRARS(net.ofx.types.x2003.x04.IntraResponse intrars)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.IntraResponse target = null;
            target = (net.ofx.types.x2003.x04.IntraResponse)get_store().find_element_user(INTRARS$0, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.IntraResponse)get_store().add_element_user(INTRARS$0);
            }
            target.set(intrars);
        }
    }
    
    /**
     * Appends and returns a new empty "INTRARS" element
     */
    public net.ofx.types.x2003.x04.IntraResponse addNewINTRARS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.IntraResponse target = null;
            target = (net.ofx.types.x2003.x04.IntraResponse)get_store().add_element_user(INTRARS$0);
            return target;
        }
    }
    
    /**
     * Unsets the "INTRARS" element
     */
    public void unsetINTRARS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(INTRARS$0, 0);
        }
    }
    
    /**
     * Gets the "INTRAMODRS" element
     */
    public net.ofx.types.x2003.x04.IntraModResponse getINTRAMODRS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.IntraModResponse target = null;
            target = (net.ofx.types.x2003.x04.IntraModResponse)get_store().find_element_user(INTRAMODRS$2, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * True if has "INTRAMODRS" element
     */
    public boolean isSetINTRAMODRS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(INTRAMODRS$2) != 0;
        }
    }
    
    /**
     * Sets the "INTRAMODRS" element
     */
    public void setINTRAMODRS(net.ofx.types.x2003.x04.IntraModResponse intramodrs)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.IntraModResponse target = null;
            target = (net.ofx.types.x2003.x04.IntraModResponse)get_store().find_element_user(INTRAMODRS$2, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.IntraModResponse)get_store().add_element_user(INTRAMODRS$2);
            }
            target.set(intramodrs);
        }
    }
    
    /**
     * Appends and returns a new empty "INTRAMODRS" element
     */
    public net.ofx.types.x2003.x04.IntraModResponse addNewINTRAMODRS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.IntraModResponse target = null;
            target = (net.ofx.types.x2003.x04.IntraModResponse)get_store().add_element_user(INTRAMODRS$2);
            return target;
        }
    }
    
    /**
     * Unsets the "INTRAMODRS" element
     */
    public void unsetINTRAMODRS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(INTRAMODRS$2, 0);
        }
    }
    
    /**
     * Gets the "INTRACANRS" element
     */
    public net.ofx.types.x2003.x04.IntraCancellationResponse getINTRACANRS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.IntraCancellationResponse target = null;
            target = (net.ofx.types.x2003.x04.IntraCancellationResponse)get_store().find_element_user(INTRACANRS$4, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * True if has "INTRACANRS" element
     */
    public boolean isSetINTRACANRS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(INTRACANRS$4) != 0;
        }
    }
    
    /**
     * Sets the "INTRACANRS" element
     */
    public void setINTRACANRS(net.ofx.types.x2003.x04.IntraCancellationResponse intracanrs)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.IntraCancellationResponse target = null;
            target = (net.ofx.types.x2003.x04.IntraCancellationResponse)get_store().find_element_user(INTRACANRS$4, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.IntraCancellationResponse)get_store().add_element_user(INTRACANRS$4);
            }
            target.set(intracanrs);
        }
    }
    
    /**
     * Appends and returns a new empty "INTRACANRS" element
     */
    public net.ofx.types.x2003.x04.IntraCancellationResponse addNewINTRACANRS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.IntraCancellationResponse target = null;
            target = (net.ofx.types.x2003.x04.IntraCancellationResponse)get_store().add_element_user(INTRACANRS$4);
            return target;
        }
    }
    
    /**
     * Unsets the "INTRACANRS" element
     */
    public void unsetINTRACANRS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(INTRACANRS$4, 0);
        }
    }
}
